package io.gitee.zhangbinhub.test.reactive.conf

import io.gitee.zhangbinhub.acp.boot.base.BaseApiConfiguration
import io.swagger.v3.oas.models.OpenAPI
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.beans.factory.annotation.Value
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

/**
 * @since JDK 17
 */
@Configuration(proxyBeanMethods = false)
class CustomerApiConfiguration @Autowired constructor(@Value($$"${info.version}") version: String?) :
    BaseApiConfiguration(version) {
    @Bean
    fun createRestApi(): OpenAPI {
        return buildApiInfo(
            "Test Spring Boot WebFlux RESTful API",
            "API Document",
            "ZhangBin",
            "https://github.com/zhangbin1010",
            "zhangbin1010@qq.com"
        )
    }
}
